let getRootPath_web =function(){
  let curWwwPath = window.document.location.href;
  let pathName = window.document.location.pathname;
  let pos = curWwwPath.indexOf(pathName);
  let localhostPaht = curWwwPath.substring(0, pos);
  let projectName = pathName.substring(0, pathName.substr(1).indexOf('/') + 1);
  return (localhostPaht + projectName);
}
export default getRootPath_web
